#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"

int main()
{
	HT hp;
	HPinit(&hp);
	int a[] = { 32,4,3,5,4,23,17,86,433,5,765,87 };
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		Push(&hp,a[i]);
	}

	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		printf("%d ",hp.a[i]);
	}

	printf("\n");
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		int top = Top(&hp);
		printf("%d\n",top);
		Pop(&hp);
	}


	Destory(&hp);

	return 0;
}